<?php /* Smarty version Smarty-3.1.21, created on 2015-05-31 02:35:47
         compiled from "D:\mywamp\www\2015php\wenda\Index\View\ask\index.html" */ ?>
<?php /*%%SmartyHeaderCode:19526556a73837fe1c6-40868503%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '01b1c1201c1b1cdfea69abcc0a7116e477d2cb11' => 
    array (
      0 => 'D:\\mywamp\\www\\2015php\\wenda\\Index\\View\\ask\\index.html',
      1 => 1432827015,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '19526556a73837fe1c6-40868503',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'userinfo' => 0,
    'topcate' => 0,
    'v' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.21',
  'unifunc' => 'content_556a73839e59c8_90109837',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_556a73839e59c8_90109837')) {function content_556a73839e59c8_90109837($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>	
	<link rel="stylesheet" href="<?php echo @constant('__PUBLIC__');?>
/Css/ask.css" />
	<?php echo $_smarty_tpl->getSubTemplate ("../common/head.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	<?php echo '<script'; ?>
> 
	<?php echo '</script'; ?>
>
	<?php echo '<script'; ?>
 type="text/javascript" src="<?php echo @constant('__PUBLIC__');?>
/Js/ask.js"><?php echo '</script'; ?>
>

<!-- top结束 -->
	<div id='location'>
		<a href="">后盾问答</a>&nbsp;>&nbsp;提问
	</div>

<!--------------------中部-------------------->
	<div id='center'>
		<div class='send'>
			<div class='title'>
				<p class='left'>向亿万网友们提问</p>
				<p class='right'>您还可以输入<span id='num'>50</span>个字</p>
			</div>
			<form action="./index.php?c=ask&a=addAsk" method='post'>
				<div class='cons' style="position:relative;">
					<?php if (!isset($_SESSION['username'])) {?>
						<h3 class="plaselogin" style="position:absolute;font-size:25px;left:240px;top:25px;"><a href="javascript:;" onclick="$('.login').click()">请您先登陆</a></h3>
						<textarea name="content" id="content" disabled="disabled"></textarea>
						<?php } else { ?>
						<textarea name="content" id="content" ></textarea>
					<?php }?>
				</div>
				<div class='reward'>
					<span id='sel-cate' class='cate-btn'>选择分类</span>
					<span  style="line-height:30px;display:block;float:left;margin-left:10px;"><b id="sel-name"></b></span>
					<ul>
						<li style="display:none;">
							
								我的金币：<span class="mypoint"></span>
							
						</li>
						<li style="display:none;">
					  悬赏：<select name="reward">
								<option value="0">0</option>
								<option value="5">5</option>
								<option value="10">10</option>
								<option value="15">15</option>
								<option value="20">20</option>
								<option value="30">30</option>
								<option value="50">50</option>
								<option value="80">80</option>
								<option value="100">100</option>
							</select>金币
						</li>
						
						
						
						
						<?php if (isset($_SESSION['username'])) {?>
						<li>
							
								我的金币：<span class="mypoint"><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['point'];?>
</span>
							
						</li>
						<li>
					  悬赏：<select name="reward">
								<option value="0">0</option>
								<option value="5">5</option>
								<option value="10">10</option>
								<option value="15">15</option>
								<option value="20">20</option>
								<option value="30">30</option>
								<option value="50">50</option>
								<option value="80">80</option>
								<option value="100">100</option>
							</select>金币
						</li>
						<?php }?>
					</ul>
				</div>
				<input type='hidden' name='cid' value='0'/>
				<?php if (isset($_SESSION['uid'])) {?>
					<input type="hidden" name="uid" value="<?php echo $_SESSION['uid'];?>
" />
					<?php } else { ?>
					<input type="hidden" name="uid" value="" />
				<?php }?>
				<input type="submit" value='提交问题' class='send-btn'/>
			</form>
		</div>
	</div>
	<div id='category'>
		<p class='title'>
			<span>请选择分类</span>
			<a href="" class='close-window'></a>
		</p>
		
		<div class='sel'>
			<p>为您的问题选择一个合适的分类：</p>
			<select name="cate-one" size='16'>
				<?php  $_smarty_tpl->tpl_vars['v'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['v']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['topcate']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['v']->key => $_smarty_tpl->tpl_vars['v']->value) {
$_smarty_tpl->tpl_vars['v']->_loop = true;
?>
					<option value="<?php echo $_smarty_tpl->tpl_vars['v']->value['cid'];?>
"><?php echo $_smarty_tpl->tpl_vars['v']->value['title'];?>
</option>
				<?php } ?>
			</select>
			<select name="cate-one" size='16' class='hidden'></select>
			<select name="cate-one" size='16' class='hidden'></select>
		</div>
		<p class='bottom'>
			<span id='ok'>确定</span>
		</p>
	</div>
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<?php echo $_smarty_tpl->getSubTemplate ("../common/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

<!--[if IE 6]>
    <?php echo '<script'; ?>
 type="text/javascript" src="./Js/iepng.js"><?php echo '</script'; ?>
>
    <?php echo '<script'; ?>
 type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    <?php echo '</script'; ?>
>
<![endif]-->
</body>
</html>
<!-- 底部结束 --><?php }} ?>
